<extend name="Layout:layout_base" />
<block name="head_title">
    <title>账户登录 - XWAM</title>
</block>
<block name="head_after">
    <link href="__THEME__Css/login.min.css" rel="stylesheet" type="text/css"/>
</block>
<block name="body_before">
    <script src="__JSCOMMON__js.cookie/js.cookie.min.js" type="text/javascript"></script>
    <script src="__JQPLUGIN__jquery-validation-1.13.1/dist/jquery.validate.min.js" type="text/javascript"></script>
    <script src="__JQPLUGIN__jquery-validation-1.13.1/dist/localization/messages_zh.min.js" type="text/javascript"></script>    
    <script src="__THEME__Script/Login/index.min.js" type="text/javascript"></script>
</block>
<block name="body_main">
    <div class="login-panel">
        <div class="login-form">
            <h1>欢迎登录后台管理系统</h1>
            <form method="post" action="{:AddonU('login')}">
                <div class="form-field-text">
                    <i class="fa fa-user fa-fw"></i>
                    <input type="text" id="login_name" name="login_name" required="required" placeholder="用户名" />
                </div>
                <div class="form-field-text">
                    <i class="fa fa-key fa-fw"></i>
                    <input type="password" id="password" name="password" required="required" placeholder="密码" />
                </div>
                <if condition="C('USER.SHOW_LOGIN_CAPTCHA')">
                    <div class="form-field-captcha">
                        <input type="text" name="captcha" placeholder="验证码" required="required" data-confirm-url="{:U('Captcha/confirm','code=varkey')}"/>
                        <a class="change-captcha" href="#" title="看不清楚,点击图片重换一个"><img src="{:U('Captcha/index')}" alt=""/></a>
                    </div>
                    <div class="form-field-checkbox"><input type="checkbox" name="remember_me" value="Y" />记住我</div>
                    <else/>                
                    <div class="form-field-checkbox" style="margin-top:10px;"><input type="checkbox" name="remember_me" value="Y" />记住我</div>
                </if>
                <div class="form-field-button"><button type="submit" autofocus="autofocus"><i class="fa fa-lock fa-fw"></i>登录</button><button type="reset"><i class="fa fa-refresh fa-fw"></i>重置</button></div>
                <div class="footer">(c) 2015 <a href="#" target="_blank">{$Think.Config.USER.APP_NAME}</a> 程序版本：Ver{$Think.Config.USER.APP_VERSION}</div>
            </form>
        </div>
    </div>
</block>